import requests

res = requests.get('http://127.0.0.1:5000/user4',
                    json={'name': 'lisi', 'age':33},
                    headers={'Content-Type': 'application/json', 'Cookie': 'key=12345678910'})
print(res)